<template>
  <div id="app" >
    <transition :name="transitionName">
      <keep-alive>
        <router-view class="child-view"></router-view>
      </keep-alive>
    </transition>
  </div>
</template>
<script>

import {
  mapActions,
  mapMutations,
  mapGetters
} from 'vuex'
import Vue from 'vue'
export default {
  name: 'app',
  components: {
    
  },
  data() {
    return {
      transitionName: 'slide-left'
    }
  },
  
  methods: {
    
  },
  mounted() {
   
  },
  computed: {
    
  },
  watch:{
    
  }
}
</script>
<style>
.child-view {
  position: absolute;
  width: 100%;
  transition: all .5s cubic-bezier(.55, 0, .1, 1);
  /*min-height: 100%;*/
}

.paddingBottom {
  padding-bottom: 60px;
}

.slide-left-enter,
.slide-right-leave-active {
  opacity: 0;
  -webkit-transform: translate(50px, 0);
  transform: translate(50px, 0);
}

.slide-left-leave-active,
.slide-right-enter {
  opacity: 0;
  -webkit-transform: translate(-50px, 0);
  transform: translate(-50px, 0);
}

.header {
  position: absolute;
  height: 44px;
  background: #0058f1;
  width: 100%
}
</style>
